<!--
 * @Author: your name
 * @Date: 2021-06-27 19:59:25
 * @LastEditTime: 2021-06-27 21:53:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_shop_mananger\src\views\home\componets\title_header.vue
-->
<template>
  <div class="title_header">
      <div>
        <h1>电商后台管理系统</h1>
      </div>
      <div>
        <el-button type="info" @click="exit">退出</el-button>
      </div> 
  </div>
</template>
<script>
export default {
  
  methods: {
    exit(){
      window.sessionStorage.clear();
      this.$router.push('/login');
    }
  },
}
</script>
<style lang="scss" scoped>
.title_header{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  div{
    display: flex;
    align-items: center;
    height: 100%;
  }
}
</style>